package org.xjtu.weteam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.xjtu.weteam.model.domain.Team;
import org.xjtu.weteam.model.dto.TeamDTO;

import java.io.IOException;
import java.util.List;

/**
 * @author Kevin
 */

public interface TeamService extends IService<Team> {
    Boolean createTeam(Team team,String token);

    List<Team> getJoinTeams(String token) throws IOException;

    void deleteTeam(Integer teamId);

    Team getByTeamId(Integer teamId);

    boolean checkIfJoin(TeamDTO teamDTO);
}
